package com.gopay.common.domain.cbrmb;

import com.gopay.common.domain.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 跨境人民币 进口分账单条记录明细表
 * @CbRmbImportLedgerDtl.java
 * @Author b.zou
 * @Date 2017-7-24  www.gopay.com.cn Inc.All rights reserved.
 */
@Entity
@Table(name="CB_RMB_IMPORT_LEDGER_DTL")
public class CbRmbImportLedgerDtl extends BaseEntity {

    private static final long serialVersionUID = 3684101245253482042L;

    /**
     * 交易流水号
     */

    @Column(name = "TRANS_DTL_SQ", unique = true, nullable = false, length = 30)
    private int transDtlSq;

    /**
     * 分账子流水号（例如有三笔分账订单则分别为1、2、3)
     */
    @Id
    @Column(name="SPLIT_SEQ")
    private int splitSeq;

    /**
     * 国付宝订单号
     */
    @Column(name="GOPAY_ORDER_ID")
    private String gopayOrderId;

    /**
     * 金额
     */
    @Column(name="SPLIT_AMT")
    private BigDecimal splitAmt;

    /**
     *比例
     */
    @Column(name="SPLIT_SCALE")
    private String splitScale;

    /**
     *账户
     */
    @Column(name="SPLIT_ACCT_ID")
    private String splitAcctId;

    /**
     *分账流水状态：00-成功 01-处理中 02-失败 04-等待异步处理 05-异步处理中
     */
    @Column(name="SPLIT_STATUS")
    private String splitStatus;

    /**
     *创建时间
     */
    @Column(name="CREATE_TIME")
    private Date createTime;

    /**
     *最后修改时间
     */
    @Column(name="LAST_UP_TIME")
    private Date lastUpdateTime;

    /**
     *版本号
     */
    @Column(name="VERSION")
    private String version;

    /**
     *备注1
     */
    @Column(name="REMARK1")
    private String remark1;

    /**
     *备注2
     */
    @Column(name="REMARK2")
    private String remark2;


    public int getTransDtlSq() {
        return transDtlSq;
    }

    public void setTransDtlSq(int transDtlSq) {
        this.transDtlSq = transDtlSq;
    }

    public int getSplitSeq() {
        return splitSeq;
    }

    public void setSplitSeq(int splitSeq) {
        this.splitSeq = splitSeq;
    }

    public String getGopayOrderId() {
        return gopayOrderId;
    }

    public void setGopayOrderId(String gopayOrderId) {
        this.gopayOrderId = gopayOrderId;
    }

    public BigDecimal getSplitAmt() {
        return splitAmt;
    }

    public void setSplitAmt(BigDecimal splitAmt) {
        this.splitAmt = splitAmt;
    }

    public String getSplitScale() {
        return splitScale;
    }

    public void setSplitScale(String splitScale) {
        this.splitScale = splitScale;
    }

    public String getSplitAcctId() {
        return splitAcctId;
    }

    public void setSplitAcctId(String splitAcctId) {
        this.splitAcctId = splitAcctId;
    }

    public String getSplitStatus() {
        return splitStatus;
    }

    public void setSplitStatus(String splitStatus) {
        this.splitStatus = splitStatus;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getLastUpdateTime() {
        return lastUpdateTime;
    }

    public void setLastUpdateTime(Date lastUpdateTime) {
        this.lastUpdateTime = lastUpdateTime;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getRemark1() {
        return remark1;
    }

    public void setRemark1(String remark1) {
        this.remark1 = remark1;
    }

    public String getRemark2() {
        return remark2;
    }

    public void setRemark2(String remark2) {
        this.remark2 = remark2;
    }
}
